package string;

/**
 * 说明:
 *
 * @author: luohaowei
 * @date:2023/2/28
 **/
public class TrimDemo {
    public static void main(String[] args) {
        String str="    hello world        ";
        str=str.trim();
        System.out.println(str);
    }
}
/*
        String str="      hello world      ";
        str=str.trim();
        System.out.println(str);
 */
